﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using Negocio;

namespace Interfaces
{
    /// <summary>
    /// Interaction logic for IUListaDiariaPorFecha.xaml
    /// </summary>
    public partial class IUListaDiariaPorFecha : Window
    {
        public IUListaDiariaPorFecha()
        {
            InitializeComponent();
            calendar1.SelectedDate = DateTime.Now.Date;
        }

        private void buttonVerProductos_Click(object sender, RoutedEventArgs e)
        {
            DateTime Fecha = calendar1.SelectedDate.Value.Date;
            IUListaCompras lista = new IUListaCompras(Fecha);
            lista.label1.Content = "Lo que debes comprar "+ControladorFecha.dayOfWeekLarge(Fecha);
            lista.buttonAgregarListaDiaria.Visibility = Visibility.Hidden;
            lista.ShowDialog();
        }
    }
}
